package com.qfedu.dao;

import com.qfedu.pojo.entity.Order;
import com.qfedu.pojo.entity.Orders;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author:User
 * @time:2022/9/27
 * @explain:
 */
public interface OrdersRepository extends JpaRepository<Orders,String> {
    @Query(value = "select * from orders where user_id=?1",nativeQuery = true)
    List<Orders> findByUserId(Integer orderId);
}
